﻿<%@ Page Title="" Language="vb" AutoEventWireup="false" MasterPageFile="~/Site.Master" CodeBehind="editprofile.aspx.vb" Inherits="WeightLossProject.AddProfile" %>
<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="asp" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server"  ClientIDMode="Inherit">
    <h2 class=custom-header>Create or Edit Your Profile!</h2>
    <asp:Label ID="lblNames" runat="server" Text="Please Enter your Names" 
        CssClass="formlabel"></asp:Label>
    <asp:TextBox ID="txtNames" runat="server" CssClass="frmDisplayEdit"></asp:TextBox>
    <asp:RequiredFieldValidator ID="rfv_txtNames" runat="server" 
        ControlToValidate="txtNames" ErrorMessage="Please Enter your Names!" 
    Display="Dynamic" CssClass="error"></asp:RequiredFieldValidator>
    <br />

    <asp:Label ID="lblAge" runat="server" Text="Please Enter Your Age" 
        CssClass="formlabel"></asp:Label>
    <asp:TextBox ID="txtAge" runat="server" CssClass="frmDisplayEdit"></asp:TextBox>
<asp:RequiredFieldValidator ID="rfv_txtAge" runat="server" 
    ControlToValidate="txtAge" Display="Dynamic" 
    ErrorMessage="Please Enter your Age!" CssClass="error"></asp:RequiredFieldValidator>
<br />

    <asp:Label ID="Label1" runat="server" Text="Please Select your Gender" 
        CssClass="formlabel"></asp:Label>
    <asp:RequiredFieldValidator ID="rfv_cblGender" runat="server" 
    ControlToValidate="cblGender" Display="Dynamic" 
    ErrorMessage="Please Specify Your Gender!" CssClass="error"></asp:RequiredFieldValidator>
<asp:RadioButtonList ID="cblGender" runat="server" RepeatDirection="Horizontal" 
        CssClass="frmDisplayEdit">
    <asp:ListItem>Female</asp:ListItem>
    <asp:ListItem>Male</asp:ListItem>
</asp:RadioButtonList>
    <br />

    <asp:Label ID="lblPicture" runat="server" Text="Add Your Picture" 
        CssClass="formlabel"></asp:Label>
    <asp:FileUpload ID="fuPicture" runat="server" CssClass="frmDisplayEdit" /><br />

    <asp:Label ID="lblCurrentPicture" runat="server" Text="Current Picture" 
        CssClass="formlabel"></asp:Label>
    <asp:Image ID="myPicture" runat="server" Width="100px" 
    CssClass="frmDisplayEdit" />
    <br />
    
    <asp:Label ID="lblDescription" runat="server" 
        Text="Please Provide a Brief Description of Yourself!" CssClass="formlabel"></asp:Label>
    <asp:TextBox ID="txtDescription" runat="server" TextMode="MultiLine" 
        Height="89px" CssClass="frmDisplayEdit"></asp:TextBox>
    <asp:RequiredFieldValidator ID="rfvTxtDescription" runat="server" 
        ControlToValidate="txtDescription" Display="Dynamic" 
        ErrorMessage="Description Cannot be Blank!" CssClass="error"></asp:RequiredFieldValidator>

    <br />

    <asp:Label ID="lblLocation" runat="server" Text="Your Location / Country" 
        CssClass="formlabel"></asp:Label>
    <asp:DropDownList ID="txtLocation" runat="server" CssClass="frmDisplayEdit" 
        DataSourceID="dsCountries" DataTextField="Name" 
    DataValueField="CountryID">
    </asp:DropDownList>
    <asp:SqlDataSource ID="dsCountries" runat="server" 
        ConnectionString="<%$ ConnectionStrings:ConnectionString %>" 
        ProviderName="<%$ ConnectionStrings:ConnectionString.ProviderName %>" 
        SelectCommand="SELECT [Name], [CountryID] FROM [tblCountries]">
    </asp:SqlDataSource>
<asp:RequiredFieldValidator ID="rfv_txtLocation" runat="server" 
    ControlToValidate="txtLocation" Display="Dynamic" 
    ErrorMessage="Specify your Location!" CssClass="error"></asp:RequiredFieldValidator>
<br />

    <asp:Label ID="lblWeight" runat="server" Text="Your Weight (In Kilograms)" 
    CssClass="formlabel"></asp:Label>
    <asp:TextBox ID="txtWeight" runat="server" CssClass="frmDisplayEdit"></asp:TextBox>
<asp:RequiredFieldValidator ID="rfv_txtWeight" runat="server" 
    ControlToValidate="txtWeight" Display="Dynamic" 
    ErrorMessage="Please Enter your Weight!" CssClass="error"></asp:RequiredFieldValidator>
<asp:RangeValidator ID="rv_txtWeight" runat="server" 
    ControlToValidate="txtWeight" Display="Dynamic" 
    ErrorMessage="Weight should not Exceed 1000Kg." MaximumValue="800" 
    MinimumValue="30" SetFocusOnError="True" Type="Double" CssClass="error"></asp:RangeValidator>
<br />

    <asp:Label ID="lblHeight" runat="server" Text="Your Height (In Metres)" 
    CssClass="formlabel"></asp:Label>
    <asp:TextBox ID="txtHeight" runat="server" CssClass="frmDisplayEdit"></asp:TextBox>
<asp:RequiredFieldValidator ID="rfv_txtHeight" runat="server" 
    ControlToValidate="txtHeight" Display="Dynamic" 
    ErrorMessage="Please Enter your Height!" CssClass="error"></asp:RequiredFieldValidator>
<asp:RangeValidator ID="rv_txtHeight" runat="server" 
    ControlToValidate="txtHeight" Display="Dynamic" 
    ErrorMessage="Height Should Not  Exceed 4 Metres!" MaximumValue="4" 
    MinimumValue="0.1" Type="Double" CssClass="error"></asp:RangeValidator>
    <br />

    <asp:Label ID="lblTargetWeight" runat="server" Text="Target Weight" CssClass="formlabel"></asp:Label>
    <asp:TextBox ID="txtTargetWeight" runat="server" CssClass="frmDisplayEdit"></asp:TextBox>
    <asp:RequiredFieldValidator ID="rfvTargetWeight" runat="server" 
        ControlToValidate="txtTargetWeight" Display="Dynamic" 
        ErrorMessage="Please Enter your Target Weight!" CssClass="error"></asp:RequiredFieldValidator>
    <asp:RangeValidator ID="rvTargetWeight" runat="server" 
        ControlToValidate="txtTargetWeight" Display="Dynamic" 
        ErrorMessage="Please Enter Numbers Only" MaximumValue="1000" MinimumValue="10" 
        Type="Integer" CssClass="error"></asp:RangeValidator>
<br />

    <asp:Label ID="lblEmail" runat="server" Text="Your Email Address" CssClass="formlabel"></asp:Label>
    <asp:TextBox ID="txtEmail" runat="server" CssClass="frmDisplayEdit"></asp:TextBox>
<asp:RequiredFieldValidator ID="rfv_txtEmail" runat="server" 
    ControlToValidate="txtEmail" Display="Dynamic" 
    ErrorMessage="Please Enter your Email Address!" CssClass="error"></asp:RequiredFieldValidator>
<br />

    <asp:Label ID="lblWebsite" runat="server" Text="Your Website" CssClass="formlabel"></asp:Label>
    <asp:TextBox ID="txtWebsite" runat="server" CssClass="frmDisplayEdit"></asp:TextBox>
    <br />
    <br />

    <asp:Label ID="lblbgColor" runat="server" 
        Text="Choose Background Color for your Profile Page!" CssClass="formlabel"></asp:Label>
    <asp:DropDownList ID="ddlbgColor" runat="server" CssClass="frmDisplayEdit">
        <asp:ListItem>Red</asp:ListItem>
        <asp:ListItem>Green</asp:ListItem>
        <asp:ListItem>Blue</asp:ListItem>
        <asp:ListItem>Yellow</asp:ListItem>
        <asp:ListItem>Grey</asp:ListItem>
        <asp:ListItem>White</asp:ListItem>
        <asp:ListItem>Purple</asp:ListItem>
        <asp:ListItem>Pink</asp:ListItem>
</asp:DropDownList>
    <br />
    <br />
    <asp:Button ID="btnAddProfile" runat="server" Text="Edit/Update My Profile" 
        style="height: 26px" />

        

    <asp:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server">
    </asp:ToolkitScriptManager>
    <br />
</asp:Content>
